package com.hhf.rpc.core.model;

import com.hhf.rpc.core.constant.RpcConstant;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author hhf
 * @Date 2024/10/15
 * @Description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class RpcRequest implements Serializable {

    private String serviceName;

    private String methodName;

    private Object[] args;
    private Class<?>[] parameterTypes;

    /**
     * 服务版本号
     * 注册中心
     */
    private String serviceVersion = RpcConstant.DEFAULT_SERVICE_VERSION;

}
